package com.foreknow.spring;

import com.foreknow.service.AdminService;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class TestSpring {
    public static void main(String[] args) {
        ApplicationContext context = new ClassPathXmlApplicationContext("applicationContext.xml");
        AdminService service = (AdminService) context.getBean("adminService");
        service.getQueryInfo(1);
    }
}
